<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Lucky Bank</title>
    <%
    if (pin.Database.antiRechtsklik){out.println(pin.Header.rechtsKlikBeveiliging);}
          char statusCode = 'n';
          //CONTROLE !!!
          statusCode = pin.CodeCheck.doeS(request.getParameter("pincode"),(String)session.getAttribute("banknummer"),(String)session.getAttribute("pasnummer"));
          if (statusCode = 'g') {
            //naar volgende pagina
            session.setAttribute("pincodeGoed","ja");
            response.sendRedirect("menu.jsp");
            //Als de redirect niet werkt, de meta-refresh.
            out.println("<meta http-equiv=\"refresh\" content=\"0;url=menu.jsp\" />");
          } else {
            //bij 3x BLOKEREN !!
            //TODO ! BLOKEREN
            
            //naar code.jsp
            response.sendRedirect("code.jsp?a=1");
             //Als de redirect niet werkt, de meta-refresh.
            out.println("<meta http-equiv=\"refresh\" content=\"0;url=code.jsp?a=1\" />");
          }
    %>
  </head>
  <body>
    Controle
  </body>
</html>
